//WiFi是否绑定和绑定场景
export const SCOPE = {
  UN_BIND: 0,
  BIND_BY_OTHER_USER: 1,
  BIND_BY_MY_SELF: 2,
};
export const SCOPE_TEXT = {
  [SCOPE.UN_BIND]: "此WiFi二维码还未绑定",
  [SCOPE.BIND_BY_OTHER_USER]: "此WiFi二维码已被其他用户绑定过",
  [SCOPE.BIND_BY_MY_SELF]: "属于本用户绑定WiFi码，无需再绑定",
};
export const PUB_DOMAIN_SHOP_SCOPE = {
  //返回数据pubDomainShops，长度0是路人，长度1是单个门店，长度大于1是多个门店
  DEFAULT_USER: 0,
  SINGLE_DOMAIN: 1,
  MORE_DOMAIN: 2,
};
//码牌扫进来的场景状态
export const BIND_PAGE_TYPE = {
  BINGING: 0, //初始化进来的时候，绑定中
  EDIT: 1, //编辑中
};

export const WIFI_POSITION = {
  POSITION_1: 1, //WIFI连接位置1
  POSITION_SUCCESS: 2, //WiFi成功位
};

export const EVENT_TRACK_EVENT_OF_RESULT_FOR_WIFI = {
  UNKNOWN: 0,
  WECHAT_SUCCESS: 1,
  WECHAT_FAIL: 2,
  BUSINESS_SUCCESS: 3,
  BUSINESS_FAIL: 4,
};
export const EVENT_TRACK_TYPE_OF_BUSINESS_FOR_WIFI = {
  // bind 绑定;unbind 解绑;edit 编辑;link 链接;
  BIND: "bind",
  UNBIND: "unbind",
  EDIT: "edit",
  LINK: "link",
  INIT: "init",
};

export const WIFI_ERROR_CODE = {
  0: "正常",
  12000: "未先调用 startWifi 接口",
  12001: "当前系统不支持相关能力",
  12002: "密码错误",
  12003: "连接超时",
  12004: "重复连接 Wi-Fi",
  12005: "未打开 Wi-Fi 开关",
  12006: "请先打开手机定位服务",
  12007: "用户拒绝授权连接 Wi-Fi",
  12008: "无效 SSID",
  12009: "系统运营商配置拒绝连接 Wi-Fi",
  12010: "系统其他错误，请联系门店管理人员",
  12011: "应用在后台无法配置 Wi-Fi",
  12012: "微信定位权限未启用，请前往系统设置页面启用微信定位权限",
  12013: "系统保存的 Wi-Fi 配置过期，建议忘记 Wi-Fi 后重试",
  12014: "无效的 WEP / WPA 密码",
};
